package demo1;

import org.springframework.stereotype.Component;
//只有被@Component注解的类才能被Spring管理
@Component
public class User {
    public void sayHello() {
        System.out.println("user:Hello");

    }
}
